reftests: I can't count in CSS
authorBenjamin Otte <otte@redhat.com>
Fri, 6 Sep 2013 22:23:38 +0000 (00:23 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 6 Sep 2013 22:23:38 +0000 (00:23 +0200)
nth-child() is 1-indexed, not 0-indexed.

It doesn't matter for this test really, but better do it right to not confuse
poor developers who wonder why the first image is highlighted when nth-child(0)
clearly states "none".

testsuite/reftests/gtk-image-effect-inherit.css

index a1c40be053c8427cad0c33460a3c9170515ed4a6..2a6b04121ffdff6d0aaee81dd885a20ef6a4f778 100644 (file)
@@ -1,11 +1,11 @@
-GtkBox > :nth-child(0) {
+GtkBox > :nth-child(1) {
   -gtk-image-effect: none;
 }
 
-GtkBox > :nth-child(1) {
+GtkBox > :nth-child(2) {
   -gtk-image-effect: highlight;
 }
 
-GtkBox > :nth-child(2) {
+GtkBox > :nth-child(3) {
   -gtk-image-effect: dim;
 }